<style>
    .new-lay-span{
        display: inline-block;
        width: 45%!important;
        line-height: 3rem;
    }
</style>





<div class="x-body">


        <h3>收款信息</h3>
        <hr>
        <table class="layui-table x-admin">
            <thead>
            <tr>
                <th>
                    序号
                </th>
                <th>类型</th>
                <th>名称</th>
                <th>真实姓名</th>
                <th>收款二维码</th>
            </thead>
            {notempty name='paylist'}
            <tbody>
            {volist name='paylist' id='vo' key="k"}
            <tr>
                <td class="text-center">
                    {$k}
                </td>
                <td class="text-center">{$vo.pay_text}</td>
                <td class="text-center">{$vo.pay_name}</td>
                <td class="text-center">{$vo.true_name}({if condition="$vo.type eq 3"}卡号：{else/}账号：{/if}{$vo.bank_card})</td>
                <td class="text-center">{if condition="$vo.cover_id gt 0"}<img src="{$vo.cover_id|get_picture_url}" style="width:100px;margin-left:100px;">{/if}</td>

            </tr>
            {/volist}
            {else/}
            <tbody><tr class="odd"><td colspan="12" class="text-center" valign="top">{:config('empty_list_describe')}</td></tr></tbody>
            {/notempty}
            </tbody>
        </table>
        <hr>





</div>

<script>
    layui.use('form', function(){
        var form = layui.form;

        form.on('select(aihao)', function(data){
            console.log(data.elem); //得到select原始DOM对象
            console.log(data.value); //得到被选中的值
            console.log(data.othis); //得到美化后的DOM对象
            if(data.value==1){
                $('#video_url').hide();
                $('#video').show();
            }else{
                $('#video_url').show();
                $('#video').hide();
            }

            form.render(null, 'form');
        });


    });


    function changevideo(v) {
        if(v==1){
            $('#video').show();
            $('#video_url').hide();
        }else{
            $('#video_url').show();
            $('#video').hide();
        }
    }
</script>
